/* Set Stills v1.3 - sets a series of FRAMESTORES or VIDEO STILLS to a preset timing. Operates from selected still through to STOP icon, or End of Project. */
To use - highlight a FRAMESTORE or VIDEO STILL. Then run this ARexx routine. It will allow you to set a timing for this and every still that follows. Place a STOP icon in your project to limit this routine. */
call remlib('PROJECT_REXX_PORT')
call addlib('PROJECT_REXX_PORT',0)
start_loc=croutonspot()
project_end=croutonsinproject()
current_spot=start_loc
/* make sure we're on an STILL or FRAME & get duration */
call croutonpick(current_spot)
/* --- wait for any screen update delay --- */
call time('R')
do while (time('E')<0.5)
end
call req_open("Set Frame Times - by Aussie","---------------------------","Sets STILLs & FRAMES to the same duration.","From selected clip to STOP icon, or end.")
if (croutontype()~="FRAM") & (croutontype()~="STIL") then do
call req_tell("<< Canceled >>","Select STILL/FRAME before starting")
call req_close()
call quit()
end
f_numfields=croutongettag(duration)
f_numframes=(f_numfields%2)
f_want=req_time("Set duration",f_numframes)
if f_want="CANCEL" then do
call req_close()
call quit()
end
fm=substr(f_want,4,2)
fs=substr(f_want,7,2)
ff=substr(f_want,10,2)
f_all=((fm*1800)+(fs*30)+ff)*2
/* --- check for 2 field length to eliminate video jitter --- */